package com.mccken.springframework.context.support;

import com.mccken.springframework.beans.BeansException;

/**
 * @program: mccken-collect
 * @description:
 * @author: mccken
 * @create: 2022-12-02 10:40
 **/
public class ClassPathXmlApplicationContext extends AbstractXmlApplicationContext {
	
	private String[] configLocations;

	@Override
	protected String[] getConfigLocations() {
		return configLocations;
	}

	public ClassPathXmlApplicationContext(String[] configLocations) throws BeansException {
		this.configLocations = configLocations;
		refresh();
	}
	
	public ClassPathXmlApplicationContext(String configLocations) throws BeansException {
		this(new String[]{configLocations});
	}
	
	public ClassPathXmlApplicationContext() {}
}
